﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="NSX07.login" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <div class="center_title_bar">Login</div>
     <div class="centerlogin">
        <div class="centerlogin">
         <br /><br />
     <% 
         if (Session["User"] != "admin")
         {
          %>
    <h3>Already a Subscriber, Please sign in here 
        <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
     </h3>
    <br />
        Username:
        <asp:TextBox ID="txtUsername" runat="server" Height="20px" Width="257px"></asp:TextBox>
    <asp:Label ID="lblerrorname" runat="server" Text="" ForeColor="Red"></asp:Label>
    <br />
    <br />
    Password:
    <asp:TextBox ID="txtPassword" runat="server" TextMode="Password" Height="20px" 
            Width="257px"></asp:TextBox>
              <asp:Label ID="Lablblerrorpass" runat="server" Text="" ForeColor="Red"></asp:Label>
    <br />
    <br />
    <asp:HyperLink ID="hlForgerPass" runat="server" Font-Underline="False">Forgot password?</asp:HyperLink>
    <br />
    <br />
    <asp:Button ID="btnLogin" runat="server" Text="Login" 
    CssClass="button validate" onclick="btnLogin_Click" />
    &nbsp;
    <br />
    <br />
    <h3>if you don't have an account, please <asp:HyperLink ID="HyperLink1" 
            runat="server" Font-Underline="False" 
        Font-Bold="True" NavigateUrl="~/register.aspx">Register </asp:HyperLink> now! </h3>
        <br />
    Sign in with :
    <asp:HyperLink ID="hpSignFB" runat="server" Font-Underline="False" 
        Font-Bold="True" ForeColor="#000099">Facebook</asp:HyperLink>
        <%
             
         }
         else
         { %>
         Đăng nhập thành công
         <% 
             
         } %>
         </div>
     </div>
</asp:Content>
